package org.rslai.tcedit.domain;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.MappedSuperclass;
import javax.persistence.OneToOne;
import org.hibernate.annotations.Index;

/**
 * 测试用例执行者
 * 
 * @author rslai
 */
@MappedSuperclass
public class TestCaseExecutant extends UUIDSupport {

    private String testPlanID; // 测试计划 ID
    private String testCaseID; // 测试用例 ID
    private User user; // 执行者信息

	@Column(nullable = false, length = 32)
	@Index(name = "testPlanID")
	public String getTestPlanID() { return testPlanID; }
	public void setTestPlanID(String testPlanID) { this.testPlanID = testPlanID; }

	@Column(nullable = false, length = 32)
	public String getTestCaseID() { return testCaseID; }
	public void setTestCaseID(String testCaseID) { this.testCaseID = testCaseID; }

	@OneToOne
	@JoinColumn(nullable = false, updatable = true, unique = false)
	public User getUser() { return user; }
	public void setUser(User user) { this.user = user; }

}
